package de.kardass.jannobatch.skiprepeatabort;

public class WorkflowItem {

    private int id;

    private int counter;
    
    private String name;

    private int repeatCounter = 0;

    private int skipStepCounter = 0;

    private int skipItemCounter = 0;

    public WorkflowItem(int id, int counter, String name) {
        super();
        this.id = id;
        this.counter = counter;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCounter() {
        return counter;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRepeatCounter() {
        return repeatCounter;
    }

    public void incRepeatCounter() {
        ++repeatCounter;
    }

    public int getSkipStepCounter() {
        return skipStepCounter;
    }

    public void incSkipStepCounter() {
        ++skipStepCounter;
    }

    public int getSkipItemCounter() {
        return skipItemCounter;
    }

    public void incSkipItemCounter() {
        ++skipItemCounter;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("WorkflowItem [counter=").append(counter).append(", id=").append(id).append(", name=").append(
                name).append(", repeatCounter=").append(repeatCounter).append(", skipItemCounter=").append(
                skipItemCounter).append(", skipStepCounter=").append(skipStepCounter).append("]");
        return builder.toString();
    }

    
}
